package com.smedi.ismedi.file.core.infrastructure.config;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;

/**
 * @Author Jimmy
 * @Date 2021/6/11 16:21
 */
@Data
@Component
@ConfigurationProperties(prefix = "common-config")
public class CommonConfig {

    /**
     * 是否实际从文件服务器删除
     */
    public Boolean isDeleteFileFromFDFS = false;

    /**
     * 是否进行文件上传确认
     */
    public Boolean hasUploadFileConfirm = true;

    /**
     * 文件确认有效期
     */
    public Long uploadFileConfirmTime = 3600L;
}
